package com.blb.community.utils;

/**
 * @Author 帅帅
 * @Date 2022/6/27 15:59
 * @PackageName:com.blb._20220625springboot_jwt.utils
 * @ClassName: ResponseSetaus
 * @Description: TODO
 * @Version 1.0
 */
public enum ResponseStatus {
    JWT_EXPIRED(10000, "jwt已过期"),
    ok(200, "成功"),
    error(404, "返回数据错误"),
    INTERNAL_ERROR(5000, "系统异常"),
    BUSINESS_ERROR(5001, "业务异常"),
    LOGIN_ERROR(5002, "账号或密码错误"),
    NO_DATA_ERROR(5003, "没找到数据"),
    PARAM_ERROR(5004, "参数格式错误"),
    AUTHENTICATE_ERROR(403, "验证错误,需要登入");
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResponseStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
